<?php
class MUser extends spModel{
	public $table = 'user';
	public $pk = 'id';
		
	public function getAttributes(){
		return array(
			'name'		=>	'用户名',
			'pwd'		=>	'密码',
			'alipay'	=>	'支付宝账号',
			'bank'		=>	'银行',
			'bank_no'		=>	'银行账号',
			'bank_address'		=>	'银行支行',
			'tel'		=>	'电话',
			'email'		=>	'Email',
			'qq'		=>	'QQ',
			'bodycard'		=>	'身份证',
			'cardname'		=>	'开户名',
			'money'		=>	'金额',
			'status'		=>	'状态',
			'type'		=>	'账户类型',
		);
	}

	public function getUnFilteAttributes(){
		return array(
			'name'		=>	'用户名',
			'alipay'	=>	'支付宝账号',
			'bank'		=>	'银行',
			'tel'		=>	'电话',
			'email'		=>	'Email',
			'qq'		=>	'QQ',
			'type'		=>	'账户类型',
		);
	}
	
	public function getAttributeFormsets(){
		return array(
			'name'=>array('type'=>'textField', 'htmlOptions'=>array()),
			'type'=>array('type'=>'radio', 'options'=>array('1'=>'客服','2'=>'管理员'), 'value' => 1),
		);
	}
}